<?php
// Start sessions and check if sessions is registered from login form, if it is true display admin data, else display that you must login
session_start();
if($_SESSION['s_logged_n'] == 'true'){
    echo "Welcome to the Admin Area, " . $_SESSION['s_username'] . ". | <a href=\"logout.php\">Logout</a>";
}//if
else {
    echo "You must <a href=\"form.php\">login<a> to access admin area";
}//else
?>
